<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
</head>
<body>
    <div id="Application" style="text-align:center;">
        <my-alter></my-alter>
        <my-alter></my-alter>
    </div>
</body>
<script>
    const App = Vue.createApp({});
    const alertCompoent = {
        data() {
            return {
                msg: '警告提示框',
                count: 0
            }
        },
        methods: {
            click() {
                alert("Hello, Vue 3!");
            }
        },
        template: "<div><button @click='click'>按钮</button></div>"
    }
    App.component("my-alter", alertCompoent)
    App.mount("#Application")
</script>
</html>